/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.eagleeyes.hoverbuttons;

/**
 *
 * @author Jesse Bahr
 */
class EEHighlightedFocusable {
  private EEFocusable focusable;
  private int elapsed;
  
  public EEHighlightedFocusable(EEFocusable foc){
    focusable = foc;
    elapsed = 0;
  }

  public EEFocusable getFocusable() {
    return focusable;
  }

  public int getElapsed() {
    return elapsed;
  }

  public void setElapsed(int elapsed) {
    this.elapsed = elapsed;
  }
  
  @Override
  public int hashCode(){
    return focusable.hashCode();
  }
  
  @Override public boolean equals(Object o){
    if (o instanceof EEHighlightedFocusable){
      EEHighlightedFocusable eeo = (EEHighlightedFocusable) o;
      return (eeo.focusable.equals(focusable));
    }
    
    return false;
  }
}
